﻿<Window x:Class="Yottamud_2013_v3_Main.SystemSettingsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Settings" Height="520" Width="614" xmlns:my="clr-namespace:NumericBox;assembly=NumericBox" WindowStyle="ToolWindow">
    <Grid>
        <TabControl Height="440" Margin="12,29,0,0" Name="tabControl1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="568">
            <TabItem Header="BBS" Name="tabItem1">
                <Grid>
                    <Label Content="BBS Address:" Height="28" HorizontalAlignment="Left" Margin="6,57,0,0" Name="label1" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="87,59,350,0" Name="txtBBSAddress" VerticalAlignment="Top" TabIndex="1" />
                    <Label Content="BBS Port:" Height="28" HorizontalAlignment="Left" Margin="6,86,0,0" Name="label2" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="87,88,350,0" Name="txtBBSPort" VerticalAlignment="Top" TextChanged="txtBBSPort_TextChanged" TabIndex="3" />
                    <Label Content="BBS Name:" Height="28" HorizontalAlignment="Left" Margin="6,23,0,0" Name="label6" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="87,25,350,0" Name="txtBBSName" VerticalAlignment="Top" TabIndex="0" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="98,164,0,0" Name="txtUserName" VerticalAlignment="Top" Width="120" />
                    <Label Content="Username:" Height="28" HorizontalAlignment="Left" Margin="26,162,0,0" Name="label12" VerticalAlignment="Top" />
                    <Label Content="Password" Height="28" HorizontalAlignment="Left" Margin="26,196,0,0" Name="label13" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="98,198,0,0" Name="txtPassword" VerticalAlignment="Top" Width="120" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="377,164,0,0" Name="txtUsernameTrigger" VerticalAlignment="Top" Width="175" TextChanged="txtUsernameTrigger_TextChanged" />
                    <Label Content="Username Trigger:" Height="28" HorizontalAlignment="Left" Margin="264,162,0,0" Name="label14" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="377,196,0,0" Name="txtPasswordTrigger" VerticalAlignment="Top" Width="175" TextChanged="txtPasswordTrigger_TextChanged" />
                    <Label Content="Password Trigger:" Height="28" HorizontalAlignment="Left" Margin="264,194,0,0" Name="label15" VerticalAlignment="Top" />
                </Grid>
            </TabItem>
            <TabItem Header="Display" Name="tabItem2">
                <Grid>
                    <Label Content="Display Height:" Height="28" HorizontalAlignment="Left" Margin="7,11,0,0" Name="label3" VerticalAlignment="Top" />
                    <Label Content="Display Width:" Height="28" HorizontalAlignment="Left" Margin="6,40,0,0" Name="label4" VerticalAlignment="Top" />
                    <my:NumericBox Height="25" HorizontalAlignment="Left" Margin="104,9,0,0" Name="nbDisplayHeight" VerticalAlignment="Top" Width="80" ValueFormat="0" Maximum="40" Minimum="20" Value="30" />
                    <my:NumericBox Height="25" HorizontalAlignment="Left" Margin="104,40,0,0" Name="nbDisplayWidth" VerticalAlignment="Top" Width="80" ValueFormat="0" Maximum="80" Minimum="20" Value="70" />
                    <Button Content="Select Font" Height="23" HorizontalAlignment="Left" Margin="7,91,0,0" Name="btnFontSelector" VerticalAlignment="Top" Width="75" Click="btnFontSelector_Click" />
                </Grid>
            </TabItem>
            <TabItem Header="Resources" Name="tabItem3">
                <Grid>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="104,39,0,0" Name="txtDatabaseFile" VerticalAlignment="Top" Width="413" TextChanged="txtDatabaseFile_TextChanged" />
                    <Button Content="..." Height="23" HorizontalAlignment="Left" Margin="523,39,0,0" Name="btnLoadDBFile" VerticalAlignment="Top" Width="28" Click="btnLoadDBFile_Click" />
                    <Label Content="MMud Database:" Height="28" HorizontalAlignment="Left" Margin="6,39,0,0" Name="label5" VerticalAlignment="Top" />
                    <Button Content="Load" Click="LoadResources" Height="23" HorizontalAlignment="Left" Margin="442,68,0,0" VerticalAlignment="Top" Width="75" Name="btnLoadResources" />
                </Grid>
            </TabItem>
            <TabItem Header="Player Auto Settings" Name="player">
                <Grid>
                    <GroupBox Header="Health Settings" Height="368" HorizontalAlignment="Left" Margin="6,6,0,0" Name="groupBox1" VerticalAlignment="Top" Width="293">
                        <Grid>
                            <my:NumericBox Height="25" HorizontalAlignment="Left" Margin="127,6,0,0" Name="nbResumeHP" VerticalAlignment="Top" Width="80" ValueFormat="0" Value="99" Maximum="100" Minimum="0" ValueChanged="nbResumeHP_ValueChanged" TabIndex="0" />
                            <Label Content="Resume when above:" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label7" VerticalAlignment="Top" />
                            <my:NumericBox Height="25" HorizontalAlignment="Left" Margin="127,35,0,0" Name="nbRestHP" VerticalAlignment="Top" Width="80" ValueFormat="0" Maximum="100" Minimum="0" Value="75" ValueChanged="nbRestHP_ValueChanged" TabIndex="1" />
                            <my:NumericBox Height="25" HorizontalAlignment="Left" Margin="127,66,0,0" Name="nbRestHealHP" VerticalAlignment="Top" Width="80" ValueFormat="0" Maximum="100" Minimum="0" Value="50" ValueChanged="nbRestHealHP_ValueChanged" TabIndex="2" />
                            <my:NumericBox Height="25" HorizontalAlignment="Left" Margin="127,96,0,0" Name="nbRestCombatHP" VerticalAlignment="Top" Width="80" ValueFormat="0" Maximum="100" Minimum="0" Value="60" ValueChanged="nbRestCombatHP_ValueChanged" TabIndex="3" />
                            <my:NumericBox Height="25" HorizontalAlignment="Left" Margin="127,0,0,196" Name="nbHangupHP" VerticalAlignment="Bottom" Width="80" ValueFormat="0" Maximum="100" Minimum="0" Value="20" ValueChanged="nbHangupHP_ValueChanged" TabIndex="4" />
                            <Label Content="Rest When Below:" Height="28" HorizontalAlignment="Left" Margin="6,34,0,0" Name="label8" VerticalAlignment="Top" />
                            <Label Content="Heal (Rest):" Height="28" HorizontalAlignment="Left" Margin="6,65,0,0" Name="label9" VerticalAlignment="Top" />
                            <Label Content="Heal (Combat):" Height="28" HorizontalAlignment="Left" Margin="6,96,0,0" Name="label10" VerticalAlignment="Top" />
                            <Label Content="Hangup when below:" Height="28" HorizontalAlignment="Left" Margin="6,127,0,0" Name="label11" VerticalAlignment="Top" />
                            <Label Content="% (0/0)" Height="28" HorizontalAlignment="Left" Margin="208,4,0,0" Name="lblResumeHP" VerticalAlignment="Top" />
                            <Label Content="% (0/0)" Height="28" HorizontalAlignment="Left" Margin="208,33,0,0" Name="lvlRestHP" VerticalAlignment="Top" />
                            <Label Content="% (0/0)" Height="28" HorizontalAlignment="Left" Margin="208,64,0,0" Name="lvlHealHPRest" VerticalAlignment="Top" />
                            <Label Content="% (0/0)" Height="28" HorizontalAlignment="Left" Margin="208,94,0,0" Name="lblHealHPCombat" VerticalAlignment="Top" />
                            <Label Content="% (0/0)" Height="28" HorizontalAlignment="Left" Margin="208,126,0,0" Name="lblHangupHP" VerticalAlignment="Top" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Mana Settings" Height="368" HorizontalAlignment="Left" Margin="305,6,0,0" Name="groupBox2" VerticalAlignment="Top" Width="246">
                        <Grid />
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem Header="Player Details">
                <Grid>
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="70,34,0,0" VerticalAlignment="Top" Width="189" Name="cbRaceList" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="70,66,0,0" VerticalAlignment="Top" Width="189" Name="cbClassList" />
                    <Label Content="Race:" Height="28" HorizontalAlignment="Left" Margin="21,31,0,0" VerticalAlignment="Top" />
                    <Label Content="Class:" Height="28" HorizontalAlignment="Left" Margin="21,63,0,0" VerticalAlignment="Top" />
                </Grid>
            </TabItem>
        </TabControl>
        <Button Content="Close" Height="23" HorizontalAlignment="Left" Margin="505,446,0,0" Name="btnClose" VerticalAlignment="Top" Width="75" Click="btnClose_Click" />
        <Button Content="Save Settings" Height="23" HorizontalAlignment="Left" Margin="411,446,0,0" Name="btnSaveSettings" VerticalAlignment="Top" Width="88" Click="btnSaveSettings_Click" />
        <Menu Height="23" HorizontalAlignment="Left" Name="menu1" VerticalAlignment="Top" Width="592">
            <MenuItem Header="File" Name="fileLoader" >
                <MenuItem Header="New" Click="NewProfile"/>
                <MenuItem Header="Load" Click="LoadProfile"/>
                <MenuItem Header="Save"  Click="btnSaveSettings_Click"/>
            </MenuItem>
        </Menu>
    </Grid>
</Window>
